#pragma once
#include "device.h"
#include "GraphicFactory.h"


class Section :
	public Device
{
public:
	Section(void);
	~Section(void);
	DEF_CREATE_CALLBACK(Section);
public:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnPaint();
public:
	virtual void   Serialize(CArchive& ar);
	virtual void   initPos(CPoint& pt1, CPoint& pt2);
	virtual CPoint getNeerPoint(CPoint pt, int& nFlag);
	virtual void   setNamePos(void);
	virtual void   extendDevice(CPoint screenPt, int nFlag);

	CPoint _pt[4];
	CPoint _sealPt[8];
	CPoint _insuPt[4];
	int    _insuType[2];
};

